package com.hqq.other.callback;

/**
 * Abstract Method of task
 * Created by heqianqian on 2017/9/4.
 */
public abstract class Task {

    public void executeTask(Callback callback) {
        execute();
        if (callback != null) {
            callback.call();
        }
    }

    protected abstract void execute();
}
